package com.lwww.infinitechat.authenticationservice.exception;

import com.lwww.infinitechat.authenticationservice.constants.user.ErrorEnum;

public class UserException extends RuntimeException {
    private final int code;
    public UserException(ErrorEnum erro) {
        super(erro.getMessage());
        this.code = erro.getCode();
    }

    public int getCode() {
        return code;
    }
}
